package com.carkeeper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.carkeeper.dto.CUserDTO;
import com.carkeeper.dto.CarDTO;
import com.carkeeper.dto.StoreDTO;
import com.carkeeper.dto.UserDTO;
import com.carkeeper.pojo.AbstractBasePO;
import lombok.Data;

import java.util.Date;
import java.util.List;
@Data
@TableName("tb_order")
public class OrderPO extends AbstractBasePO {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private String code;
    private Long storeId;//商家id
    private String storeName;//商家名称
    private String storeTel;//商家电话
    private Long userId;//用户id
    private String carCode;//车牌号
    private String carName;
    private String engineCode;//发动机号
    private String frameCode;
    private String contact;
    private String contactTel;//联系电话
    private Date payDate;//支付时间
    private Integer money;//金额
    private String type;
    private String payStatus; //支付状态
    private String serviceDate;// 服务日期
    private Integer isDelete;
    private String orderStatus;//订单状态
    @TableField(exist = false)
    private List<OrderDetailPO> orderDetailPOList;
    @TableField(exist = false)
    private List<ServicePO> servicePOList;
    @TableField(exist = false)
    private List<OrderLogPO> orderLogPO;
    @TableField(exist = false)
    private StoreDTO store;
    @TableField(exist = false)
    private CUserDTO user;
    @TableField(exist = false)
    private CarDTO car;


}
